home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 59
/
Volume 59 - JOGO DISK .iso
/
Games
/
abyss02.swf
/
scripts
/
__Packages
/
ResultCheck.as
Wrap
Text File
|
2008-03-12
|
2KB
|
71 lines
class ResultCheck
{
var starArr = new Array(0,1,3,5,7);
var abyss_boarddriversLebleArr = new Array(50,200,500,1000);
var abyss_bricksLebleArr = new Array(4,10,30,100);
var abyss_jungleairplaneLebleArr = new Array(99,300,600,1000);
var abyss_cubemoaLebleArr = new Array(99,300,1000,2000);
var abyss_filsalLebleArr = new Array(49,100,300,1000);
var abyss_jujuLebleArr = new Array(49,300,1000,5000);
var abyss_gunmanLebleArr = new Array(49,200,500,1000);
var nowLebleArr = new Array();
function ResultCheck(mc, userId, ip, gameName, point)
{
this._mc = mc;
this.userId = userId;
this.ip = ip;
this.gameName = gameName;
this.point = point;
trace(this._mc);
trace(userId);
trace(ip);
trace(gameName);
trace(point);
}
function starCalF()
{
trace("start");
var _loc3_ = undefined;
trace("point = " + this.point + ", nowArr = " + this.nowLebleArr[this.nowLebleArr.length - 1] + "," + (this.point > this.nowLebleArr[this.nowLebleArr.length]));
if(this.point > this.nowLebleArr[this.nowLebleArr.length - 1])
{
_loc3_ = this.nowLebleArr.length;
}
else
{
var _loc2_ = 0;
while(_loc2_ < this.nowLebleArr.length)
{
if(this.nowLebleArr[_loc2_] >= this.point)
{
_loc3_ = _loc2_;
break;
}
_loc2_ = _loc2_ + 1;
}
}
this.star = this.starArr[_loc3_];
this.gameEndMcF();
}
function gameEndMcF()
{
this._mc.gotoAndStop("pointSaveF");
this._mc.point = this.point;
this._mc.star = this.star;
this.resltF();
}
function resltF()
{
this._mc.gotoAndStop("loginF");
this._mc.B1.onRelease = function()
{
this._parent.gotoAndStop(1);
_root.startGame();
};
this._mc.B2.onRelease = function()
{
getUrl("http://kr.abyss.teen.yahoo.com/", "_blank");
};
}
}